import Mock from "mockjs";

Mock.mock("/getMenu/data", "get", {
  code: 200,
  data: {
    menu: [
      {
        path: "/sys",
        name: "主页",
        icon: "el-icon-house",
        component: "Home",
        children: [
          {
            path: "/sys/bannerSetting",
            name: "轮播图",
            icon: "el-icon-picture",
            component: "BannerSetting",
          },
          {
            path: "/sys/tagSetting",
            name: "主页标签",
            icon: "el-icon-setting",
            component: "TagSetting",
          },
          {
            path: "/sys/categorySetting",
            name: "分类管理",
            icon: "el-icon-setting",
            component: "CategorySetting",
          },
        ],
      },
      {
        path: "/product",
        name: "商品管理",
        icon: "el-icon-s-custom",
        component: "Home",
        children: [
          {
            path: "/product/productList",
            name: "审核列表",
            icon: "el-icon-setting",
            component: "ProductList",
          },
          {
            path: "/product/displayList",
            name: "展示列表",
            icon: "el-icon-goods",
            component: "DisplayList",
          },
        ],
      },
      {
        path: "/user",
        icon: "el-icon-s-custom",
        name: "用户管理",
        component: "Home",
        children: [
          {
            path: "/user/userList",
            name: "用户列表",
            icon: "el-icon-user",
            component: "UserList",
          },
        ],
      },
      {
        path: "/order",
        name: "订单管理",
        icon: "el-icon-s-order",
        component: "Home",
        children: [
          {
            path: "/order/orderList",
            name: "订单列表",
            icon: "el-icon-setting",
            component: "OrderList",
          },
        ],
      },
      {
        path: "/statistical",
        name: "数据统计",
        icon: "el-icon-s-order",
        component: "Home",
        children: [
          {
            path: "/statistical/pubQuantity",
            name: "发布统计",
            icon: "el-icon-setting",
            component: "QuantityCharts",
          },
          {
            path: "/statistical/orderStatistics",
            name: "订单统计",
            icon: "el-icon-setting",
            component: "OrderCharts",
          },
        ],
      },
    ],

    message: "success",
  },
});
